package com.etc.entity;

import javax.persistence.Column;
import javax.persistence.Id;

public class Blog{

	@Id
	private Integer blogid;
	public Integer getBlogid() {
		return blogid;
	}

	public void setBlogid(Integer blogid) {
		this.blogid = blogid;
	}
	//属性为title,如果不做特殊设置，表中的列名也为 title
	//如果二者不一致，这里可以通过 注解 @Column(name = "blogtitle")
	@Column(name = "blogtitle")
	private String title;
	private String content;
	private Integer authorid;
	
	
	public Integer getAuthorid() {
		return authorid;
	}

	public void setAuthorid(Integer authorid) {
		this.authorid = authorid;
	}

	@Override
	public String toString() {
		return "Blog [blogid=" + blogid + ", blogtitle=" +title + ", content=" + content + ", authorid=" + authorid
				+ "]";
	}

	
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	

}
